package top.appx.dao.impl;

import org.hibernate.Criteria;
import org.springframework.stereotype.Repository;
import top.appx.dao.FolderDao;
import top.appx.entity.FolderEntity;

import java.util.List;

/**
 * Created by zwy on 2015-6-11.
 */
@Repository
public class FolderDaoImpl extends BaseDaoImpl<FolderEntity> implements FolderDao {
    public List<FolderEntity> queryAll() {
        Criteria c = this.getCurrentSession().createCriteria(FolderEntity.class);
        return c.list();
    }
}
